/* Table 6 */


/* PSM 1951-2001 */

do prelim.do

poisson Refugees logPOPA Conflict_ORIGIN i.CL L_GDP_PC_PPP logPOPB Conflict_DESTINATION i.CL_01 L_GDP_PC_PPP_01 L_dist contig comlang_off colonizer /*
*/ i.Year logpmo5101 logpmd5101 if Year>2001 & Year<2014, vce(cluster origin)
matrix V1=e(V)
matrix vecbeta=e(b)

poisson Refugees logPOPA Conflict_ORIGIN i.CL L_GDP_PC_PPP logPOPB Conflict_DESTINATION i.CL_01 L_GDP_PC_PPP_01 L_dist contig comlang_off colonizer /*
*/ i.Year logpmo5101 logpmd5101 if Year>2001 & Year<2014, vce(cluster country) from(vecbeta)
matrix V2=e(V)

poisson Refugees logPOPA Conflict_ORIGIN i.CL L_GDP_PC_PPP logPOPB Conflict_DESTINATION i.CL_01 L_GDP_PC_PPP_01 L_dist contig comlang_off colonizer /*
*/ i.Year logpmo5101 logpmd5101 if Year>2001 & Year<2014, vce(cluster varpanel) from(vecbeta)
matrix V3=e(V)

capture program drop echange
program define echange, eclass
    matrix Omega=V1+V2-V3
    ereturn repost V = Omega
end
echange
estimate
outreg2 using table6, tex dec(4) replace

/* PSM 1992-2001 */

do prelim.do

poisson Refugees logPOPA Conflict_ORIGIN i.CL L_GDP_PC_PPP logPOPB Conflict_DESTINATION i.CL_01 L_GDP_PC_PPP_01 L_dist contig comlang_off colonizer /*
*/ i.Year logpmo9201 logpmd9201 if Year>2001 & Year<2014, vce(cluster origin)
matrix V1=e(V)
matrix vecbeta=e(b)

poisson Refugees logPOPA Conflict_ORIGIN i.CL L_GDP_PC_PPP logPOPB Conflict_DESTINATION i.CL_01 L_GDP_PC_PPP_01 L_dist contig comlang_off colonizer /*
*/ i.Year logpmo9201 logpmd9201 if Year>2001 & Year<2014, vce(cluster country) from(vecbeta)
matrix V2=e(V)

poisson Refugees logPOPA Conflict_ORIGIN i.CL L_GDP_PC_PPP logPOPB Conflict_DESTINATION i.CL_01 L_GDP_PC_PPP_01 L_dist contig comlang_off colonizer /*
*/ i.Year logpmo9201 logpmd9201 if Year>2001 & Year<2014, vce(cluster varpanel) from(vecbeta)
matrix V3=e(V)

capture program drop echange
program define echange, eclass
    matrix Omega=V1+V2-V3
    ereturn repost V = Omega
end
echange
estimate
outreg2 using table6, tex dec(4)



